Make vtk9 build-reproducible. (Closes: #977522, #977521)
authorVagrant Cascadian <vagrant@reproducible-builds.org>
Mon, 4 Jan 2021 21:08:25 +0000 (22:08 +0100)
committerAnton Gladky <gladk@debian.org>
Mon, 4 Jan 2021 21:08:25 +0000 (22:08 +0100)
debian/patches/97_reproducible_builds.patch [new file with mode: 0644]
debian/rules

diff --git a/debian/patches/97_reproducible_builds.patch b/debian/patches/97_reproducible_builds.patch
new file mode 100644 (file)
index 0000000..46c7168
--- /dev/null
@@ -0,0 +1,26 @@
+From c3f5613299c9dfdee66709674a6cafafb6576137 Mon Sep 17 00:00:00 2001
+From: Vagrant Cascadian <vagrant@reproducible-builds.org>
+Date: Tue, 15 Dec 2020 07:38:56 +0000
+Subject: [PATCH 2/2] doc_class2example.pl: Sort the parsers array.
+
+Thanks to Bernhard M. Wiedemann <bernhardout@lsmod.de>.
+---
+ Utilities/Doxygen/doc_class2example.pl | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Utilities/Doxygen/doc_class2example.pl b/Utilities/Doxygen/doc_class2example.pl
+index 3978563..ce8aeca 100755
+--- a/Utilities/Doxygen/doc_class2example.pl
++++ b/Utilities/Doxygen/doc_class2example.pl
+@@ -261,6 +261,7 @@ if (exists $args{"parser"}) {
+ } else {
+     @parsers = keys %parsers;
+ }
++@parsers = sort @parsers;
+ my $os_is_win = ($^O =~ m/(MSWin32|Cygwin)/i);
+ my $open_file_as_text = $os_is_win ? O_TEXT : 0;
+-- 
+2.29.2
+
+
index 5206482fbd79d8b9a58e628d7fdbb016d05af1ab..3372aaeddd591215dc376bca8d19962509390678 100755 (executable)
@@ -86,3 +86,5 @@ override_dh_install:
        find $(CURDIR)/debian/libvtk9-dev/ -name "libvtkRenderingPythonTkWidgets.so" -exec rm {} \; || true
        find $(CURDIR)/debian/libvtk9/ -name "*Qt*" -exec rm {} \; || true
        find $(CURDIR)/debian/libvtk9-dev/usr/include/ -name "Q*" -exec rm {} \; || true
+       find $(CURDIR)/debian/tmp/usr/share/doc/vtk-9.0/doxygen -name "_formulas.log" -exec rm {} \; || true
+       find $(CURDIR)/debian/build/Utilities/Doxygen/doc/html -name "_formulas.log" -exec rm {} \; || true